tongfusoft.mainTaskList = function() {
}
tongfusoft.mainTaskList.prototype = {
		
		query:function(){
			var params={};
			params['taskName'] = $("#taskName").val();
			params['taskNote'] = $("#taskNote").val();
			common.post('task/mainTaskList?query',params,function(data){
				
				if(data.state=='success'){
					
					var html='';
					$.each(data.data.list,function(index,item){
						
						
						
						html=html+'<div class="list-group-item">';
						html=html+'<div class="media-box">';
						html=html+'<div class="pull-left">';
						html=html+'<span class="fa-stack">';
						html=html+'<em class="fa fa-circle fa-stack-2x text-success"></em>';
						html=html+'<em class="fa fa-clock-o fa-stack-1x fa-inverse text-white"></em>';
						html=html+'</span>';
						html=html+'</div>';
						html=html+'<div class="media-box-body clearfix">';
						html=html+'<small class="label  pull-right label-info ml">任务数:'+item.taskCount+'</small>';
						html=html+'<small class="label  pull-right label-success ml">完成数:'+item.finishCount+'</small>';
						html=html+'<div class="media-box-heading">';
						html=html+'<a href="'+common.getContextPath("task/taskDetail/"+item.taskId+"?page")+'" class="text-purple m0">'+item.taskName+'</a>';
						html=html+'</div>';
						html=html+'<p class="m0">';
						html=html+'<small><a href="'+common.getContextPath("task/taskDetail/"+item.taskId+"?page")+'" >'+item.taskNote+'</a> </small>';
						html=html+'</p>';
						html=html+'</div>';
						html=html+'</div>';
						html=html+'</div>';
					
					
					});
					
					$("#taskList").empty();
					$("#taskList").html(html);
					
				}
				
			});
			
		}
		
}

$(function(){
	
	var obj = new tongfusoft.mainTaskList();
	obj.query();
	
})